<?php
namespace app\common\controller;

use com\Auth;
use think\Loader;
use think\Controller;
use think\Db;

/**
* api公用基础控制器
* @author Kaisa
* @version 2017-02-09
*/
class ApiBaseController extends Controller {

    protected function _initialize() {
		/*header('Access-Control-Allow-Origin:*');
		if(!is_https()){
			echo "非法请求 ";
			exit;
		}
		$action=request()->action();
		if(!input("app_id")||!in_array(input("app_id"), config("app_ids"))){
			if(!in_array($action,['get_sk','sk','prt'])){
				echo "非法请求400 ";
				exit;
			}
			
		}*/
	}
}
    
    
    
    
    
    
    
    
    
    

